package gaml.java.serializer.collection;

import gaml.error.GamlException;
import gaml.java.ClassSerializerStore;

import java.util.LinkedHashSet;


/**
 * serialize LinkedHashSet to empty-valued mapping node,
 * retstore LinkedHashSet from empty-valued mapping node 
 * @author shnireck
 *
 */
public class LinkedHashSetSerializer extends SetSerializer <LinkedHashSet <Object>> {

	public LinkedHashSetSerializer (ClassSerializerStore store) { super (store); }

	@Override
	public LinkedHashSet <Object> createObject () throws GamlException { return new LinkedHashSet <Object> (); }

	@Override
	public Class <LinkedHashSet <Object>> getObjectClass () { return (Class <LinkedHashSet <Object>>) new LinkedHashSet <Object> ().getClass (); }
}
